package com.enfi.api.modules.db.entity;

import java.util.Date;
import javax.persistence.*;

import com.enfi.api.modules.db.base.BaseEntity;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;
import lombok.*;




/**
 * 用户驾驶舱指标设置表(UserCockpitConfig)实体类
 *
 * @author wind
 * @since 2020-04-09 18:38:05
 */
@Getter
@Setter
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Entity
@Table(name="t_tbl_user_cockpit_config")
@EntityListeners(AuditingEntityListener.class)
@DynamicInsert
@DynamicUpdate
public class UserCockpitConfig extends BaseEntity<Long> {

    /**
     * 用户ID
     */    
    private String userId;

    /**
     * 驾驶舱类型 1集团驾驶舱 2污水驾驶舱 3供水驾驶舱
     */    
    private Integer cockpitType;
    private Integer platformType;
    /**
     * 指标配置表ID
     */    
    private Long indexConfigId;

    /**
     * 是否选中 1是0否
     */    
    private Integer isSelect;

    @LastModifiedDate
    private Date updateTime;

    /**
     * 创建时间
     */
    @CreatedDate
    private Date createTime;


}